<?php
/**
 * Created by PhpStorm. User: ADun, Date: 14/11/3 上午12:21
 * Description: Automation work, this file will be run automatically on server
 */
set_time_limit(0);

define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
require_once ROOT_PATH . "linhe.php";
require_once ROOT_PATH . 'bs/bs.automation.php';

logger()->screenFlag=true;
$path=logger()->log_path;
logger()->log_path=$path."/automation";
$logMsg="系统处理任务自动运行";

$auto = new automation();
if ($argc > 1) {
    switch ($argv[1]) {
        case 'user_count' :
            $auto->f发送用户数到手机();
            break;
        case 'get_area' :
            $auto->get_area();
            break;
        case 'updateOpenID' :
            $auto->updateOpenID();
            break;
        default:
            break;
    }
}
